<!--
 * @Description: 
 * @Author: charles
 * @Date: 2020-11-03 14:04:56
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2021-07-02 01:04:44
-->
<template>
  <div>
    游学项目
    {{project}}
    <div class= "details" v-html="project.details"></div>
  </div>
</template>
<script>
import {get} from'../utils/request'
export default {
  data(){
    return {
      project :{}
    }
  },
  //生命周期
  created(){
    //1.获取项目id
    // console.log(this.$route);
    let progectId = this.$route.query.
    progectId;
    alert(progectId);
    //2.通过项目id查询项目
    let url = ""                              //添加地址
    get(url,param).then(resp =>{
      this.project = resp.data;
    })
    //3.展示到页面中
  }
}
</script>